@charset "utf-8";

.carousel {
    font-size: 0;
    position: relative;
    overflow: hidden;
    
    .inner {
        white-space: nowrap;
        width: 100%;
        
        .item {
            display: inline-block;
            position: relative;
            width: 100%;
            
            img {
                width: 100%;
            }
        }
    }
    
    .indicators {
        margin-top: 3px;
        
        li {
            display: inline-block;
            cursor: pointer;
            border: 3px solid transparent;
            background-color: #efefef;
            background-clip: content-box;
            overflow: hidden;
            position: relative;
            width: 20%;
            height: 98px;
            
            img {
                position: absolute;
                left: 50%;
                top: 0;
                transform: translateX(-50%);
                height: 100%;
            }
        }
        
        li.active {
            border-color: #eb413d;
            background-color: #efefef;
        }
    }
    
    .control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -51px;
        width: 40px;
        line-height: 80px;
        height: 80px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
        color: #ffffff;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 500ms ease;
        
        span {
            font-size: 32px;
        }
        
        &:hover {
            background-color: #eb413d;
        }
    }
    
    .prev {
        left: 0;
    }
    
    .next {
        right: 0;
    }
    
    &:hover {
        .control {
            opacity: 1;
            visibility: visible;
        }
    }
}